import request from '@/utils/request'

// 运营位列表
export function items(params) {
  return request({
    url: '/mapi/news/items',
    method: 'get',
    params
  })
}

// 新增/编辑
export function edit_item(data) {
  return request({
    url: '/mapi/news/edit_item',
    method: 'post',
    data,
    headers: {
      'Content-Type': 'multipart/form-data'
    }
  })
}

// 删除
export function newsDelete(params) {
  return request({
    url: '/mapi/news/delete',
    method: 'post',
    params
  })
}
